import {Component} from "react";
import {View} from "@tarojs/components";

export default class Title extends Component {
  constructor(props) {
    super(props)
  }
  render() {
    const { title, TitleCom } = this.props
    return (
      TitleCom ? <TitleCom /> : <View className='title'>{ title }</View>
    )
  }
}
